<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  grabAll()
</p>
<p><strong>Class:</strong><br />

  <a href="keywordClass.html">KEYWORD</a>
<p><strong>Method Call:</strong><br />
  include_once("core/keyword/KEYWORD.php");<br />
$keyword = new KEYWORD($this-&gt;db);<br />
ASSOC. ARRAY $keyword->grabAll([$userBibliographyId = FALSE, STRING: $databaseTable = &quot;WKX_resource_keyword&quot;]); </p>
<p><strong>Description:</strong><br />
  Returns an associative array of all the keywords in the WIKINDX database  suitable for use with a HTML form select box. If <em>$userBibliographyId</em> is supplied, the list of keywords is limited to keywords from resources within that user bibliography. If <em>$databaseTable</em> is supplied (<em>WKX_resource_keyword</em>, <em>WKX_resource_quote</em>, <em>WKX_resource_paraphrase</em> or <em>WKX_resource_musing</em>) in addition to <em>$userBibliographyId</em>, then the list will be further restricted to keywords that exist in those tables. If <em>$databaseTable</em> is supplied but <em>$userBibliographyId</em> is FALSE, then the complete list of keywords from <em>WKX_keyword</em> is returned.
<p><strong>Usage:</strong>
<pre>
	include_once("core/keyword/KEYWORD.php");
	$keyword = new KEYWORD$this->db);
	$userBibId = $session->getVar("mywikindx_bibliography_use");
	$keywordArray = $keyword->grabAll($userBibId);
	$keywordArray will be something like:

	array(
			'675'		=>		'Semantics',
			'32'		=>		'Semiology',
			'53'		=>		'Semiotics',
		);
</pre>
The keys of the arrays are the ID numbers in the database table <em>WKX_keyword</em> and are the IDs that are inserted in the <em>keywords</em> field of <em>WKX_resource_keyword</em>, the <em>quote_keywords</em> field of <em>WKX_resource_quote</em>, the <em>paraphrase_keywords</em> field of <em>WKX_resource_paraphrase</em> or the <em>musing_keywords</em> field of <em>WKX_resource_musing</em>. 
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
